﻿#region Styx Namespaces
using Styx;
using Styx.CommonBot.Routines;
#endregion

namespace GiwinMonk
{
    public partial class Monk : CombatRoutine
    {

        /// <summary>
        /// Cost: 1 Chi |
        /// Range: 50 Yards |
        /// Cast Time: Instant |
        /// GCD: 1 Second |
        /// Wowhead Hyperlink: http://www.wowhead.com/spell=115073
        /// </summary>


        public bool SpinningFireBlossom()
        {
            return (MIRsettings.Instance.SpinningFireBlossom) && 
                (StyxWoW.Me.CurrentTarget != null) &&
                   (StyxWoW.Me.CurrentChi >= 1) &&
                   (StyxWoW.Me.IsFacing(StyxWoW.Me.CurrentTarget.Location)) &&
                   (StyxWoW.Me.CurrentTarget.Distance <= 50) &&
                   (StyxWoW.Me.CurrentTarget.HealthPercent < 20 ||
                    !StyxWoW.Me.IsCasting ||
                    !StyxWoW.Me.IsChanneling) &&
                    (!StyxWoW.Me.CurrentTarget.IsWithinMeleeRange) &&
                   CanCast("Spinning Fire Blossom");
        }
    }
}